﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MG.HomeO2O.Model;
using MG.HomeO2O.BLL;
namespace MG.HomeO2O.Admin.Hander
{
    /// <summary>
    /// Handlermember_add 的摘要说明
    /// </summary>
    public class Handlermember_add : IHttpHandler
    {
        member_listBLL bll = new member_listBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            personnel list = new personnel();
            list.Pname = context.Request["Pname"];
            list.PimgPath = context.Request["PimgPath"];
            list.Page =Convert.ToInt32(context.Request["Page"]);
            list.Parea = context.Request["Parea"];
            list.Lengthage = Convert.ToInt32(context.Request["Lengthage"]);
            list.Sketch = context.Request["Sketch"];
            list.Remark = context.Request["Remark"];
            list.FID =Convert.ToInt32(context.Request["FID"]);
            int i = 0;
            if(bll.peradd(list))
            {
                i = 1;
            }
            context.Response.Write(i);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}